#pragma once
#include "mfcwpfelement.h"

class CMFCWPFRect :
	public CMFCWPFElement
{
public:
	CMFCWPFRect(void);
	virtual ~CMFCWPFRect(void);

	virtual void Parse(const CString & szPath, CECGXmlParser * pXamlParser, const CRect & oRect);
	virtual bool DrawSelf(CDCPlus * pCDCPlus);
	virtual CMFCWPFElement * MouseLeftButtonUp(int nFlags, const CPoint & oPoint);
	CRect GetRect();

protected:
	CRect m_oRect;

	void CalculateRect(const CRect & oRect);
};
